<template>
  <div class="my_input">
    <input
      :type="type"
      :value="modelValue"
      :placeholder="placeholder"
      @input.stop="$emit('update:modelValue', $event.target.value)"
      @blur="$emit('blur')"
    />
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: {
    modelValue: {
      type: String,
    },
    placeholder:{
        type: String
    },
    type:{
      type: String,
      default: 'text'
    }
  },
  setup() {},
};
</script>
<style lang="scss" scoped>
.my_input {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 40px;
  font-size: 32px;
  border: 2px solid transparent;
  input {
    border: none;
    background: transparent;
    width: 75%;
    height: 50px;
    padding-left: 20px;
  }
}
</style>